package com.rd.student.wulian.wanggaobo.day0728.practice01;
//import java.util.Scanner;
//
//public class ExistsANumberHigher {
//    public static void main(String[] args) {
//        Scanner sc = new Scanner(System.in);
//        System.out.println("请输入一组数：");
//        int num = sc.nextInt();
//        int []arr =new int[num];
//
//    }
//}
import java.util.HashSet;

public class ExistsANumberHigher {
    public static boolean haveahighernum(HashSet<Integer> numbers, int n) {
        for (int num : numbers) {
            if (num >= n) {
                return true;
            }
        }
        return false;
    }

    public static void main(String[] args) {

        HashSet<Integer> numbers = new HashSet<>();
        numbers.add(1);
        numbers.add(2);
        numbers.add(3);
        numbers.add(4);
        numbers.add(5);


        boolean result = haveahighernum(numbers, 3);


        System.out.println(result);
    }
}